import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { CalendarComponent } from './calendar/calendar.component';
import { StageComponent } from './stage/stage.component';
import { LawComponent } from './law/law.component';
import { TemplateComponent } from './template/template.component';
// import { OnetomanyListComponent } from './onetomany/list/list.component';
// import {OneToManyDetailComponent} from './onetomany/detail/detail.component';
// import { PublicOfferingDetailComponent } from './public-offering/detail/detail.component';
// import { OnetomanyStepbarComponent } from './onetomany/stepbar/stepbar.component';
// import { OnetomanyEditComponent} from './onetomany/edit/edit.component';
// punlic offering fund
// import {PublicListComponent} from '../dashboard/public-offering/list/list.component';

const routes: Routes = [
	// {
	// 	path: '',
	// 	redirectTo: 'home',
	// 	pathMatch: 'full'
	// },
	{
		path: '',
		redirectTo: '/pages/dashboard/home',
		pathMatch: 'full'
	},
	{
		path: "home",
		component: HomeComponent
	}, 


	{
		path: "calendar",
		component: CalendarComponent
	}, {
		path: "stage/new/:type",
		component: StageComponent
	}, {
		path: "stage/ing/:type",
		component: StageComponent
	}, {
		path: "law",
		component: LawComponent
	}, {
		path: "template/:type",
		component: TemplateComponent
	}
];




@NgModule({
	imports: [RouterModule.forChild(routes)],
	exports: [RouterModule]
})
export class HomeRoutingModule { }
